home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 January / macformat-033.iso / mac / Shareware City / Developers / ABox.v1.8 / Header Files / ABUText.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-23  |  3.5 KB  |  120 lines  |  [TEXT/MMCC]

  1. /*    
  2.     Copyright © 1991-1995 by TopSoft Inc.  All rights reserved.
  3.  
  4.     You may diTextibute this file under the terms of the TopSoft
  5.     Artistic License, accompanying this package.
  6.     
  7.     This file was developed by George (ty) Tempel in connection with TopSoft, Inc..
  8.     See the Modification History for more details.
  9.  
  10. Product
  11.     About Box
  12.  
  13. FILE
  14.     ABUText.h
  15.  
  16. NAME
  17.     ABUText.h, part of the ABox project source code,
  18.     responsible for handling the AboutBox Text class stuff.
  19.  
  20. DESCRIPTION
  21.     This file contains defines for the about box modules.
  22.     
  23. DEVELOPED BY
  24.     George (ty) Tempel                netromancr@aol.com
  25.     All code in this file, and its associated header file was
  26.     Created by George (ty) Tempel in connection with the TopSoft, Inc.
  27.     "FilterTop" application development, except where noted.
  28.  
  29. CARETAKER - George (ty) Tempel <netromancr@aol.com>
  30.      Please consult this person for any changes or suggestions to this file.
  31.  
  32. MODIFICATION HISTORY
  33.  
  34.     dd mmm yy    -    xxx    -    patchxx: description of patch
  35.     9 June 94    -    ty    -    Initial Version Created
  36.     20-july-94    -    ty    -    initial version released
  37.     23-may-95    -    ty    -    changes for compatibility with the CodeWarrior CW6
  38.                             release and the associated Universal Headers from Apple:
  39.                             most methods that returned references now have "Ref" at
  40.                             the end of their methods names to prevent possible collisions
  41.                             with datatypes and classes of the same name (older versions
  42.                             of the compiler didn't have a problem with this).
  43.  
  44. */
  45.  
  46. /*===========================================================================*/
  47.  
  48. /*========== Exclusion Macros ============*/
  49.  
  50. #pragma    once
  51.  
  52. #ifndef    _ABUText_
  53. #define    _ABUText_
  54.  
  55.  
  56. /*============ Header Files ==============*/
  57.  
  58. /*=========== External Linkage ===========*/
  59.  
  60. /*================ Macros ================*/
  61.  
  62. /*============== Constants ===============*/
  63.  
  64. #define        kABTextResource                    ((ResType)'TEXT')
  65. #define        kABStyleResource                ((ResType)'styl')
  66.  
  67. #define        kTEUinvalidTELine                ((short)-1)
  68.  
  69. #define        kTEUdefaultLineHeight            ((short)16)
  70. #define        kTEUscrollForwardOneUnit        ((short)1)
  71. #define        kTEUscrollBackwardOneUnit        (-kTEUscrollForwardOneUnit)
  72.  
  73. /*================ Enums =================*/
  74.  
  75. /*=============== structs ================*/
  76.  
  77. /*=============== Typedefs ===============*/
  78.  
  79. /*=========== Class Definitions ==========*/
  80.  
  81. class    ABUText
  82. {
  83.     public:
  84.                         ABUText(void);
  85.         virtual            ~ABUText(void);
  86.  
  87.         static        short        TELineHeight(TEHandle te);
  88.         static        void        TEGetSelect(short* selStart, short* selEnd, TEHandle te);
  89.         static        void        TEGetChars(char* buf, short from, short to, TEHandle te);
  90.         static        void        GetTEView(TEHandle te, Rect* viewRect);
  91.         static        short        TELines(TEHandle te);
  92.         static        short        TEHeight(TEHandle te);
  93.         static        short        GetTEVScroll(TEHandle te);
  94.         static        short        ViewHeight(TEHandle te);
  95.         static        short        VScrollLocation(ControlHandle scrollbar);
  96.         static        void        PinnedTEVScroll(TEHandle te, ControlHandle scrollbar, short dv);
  97.         static        void        ScrollTELine(TEHandle te, ControlHandle scrollbar, short dir);
  98.         static        void        ScrollTEPage(TEHandle te, ControlHandle scrollbar, short dir);
  99.         static        void        TEVThumbScroll(TEHandle te, ControlHandle scrollbar);
  100.         static pascal     void        TrackUpDownArrows(ControlHandle theControl, short partCode);
  101.         static pascal     void        TrackUpDownPage(ControlHandle theControl, short partCode);
  102.         static        void        ScrollBarClick(ControlHandle scrollbar, Point where);
  103.         static        void        FixScrollBar(ControlHandle scrollbar);
  104.         
  105.         
  106.     protected:
  107.     private:
  108. };
  109.  
  110.  
  111.  
  112.  
  113. /*========== Function Prototypes =========*/
  114.  
  115.  
  116.  
  117.  
  118. #endif    // _ABUText_
  119.  
  120.